import random

def generate_prices(n=10, max_price=10):
    """生成长度为 n 的股票价格序列"""
    return [random.randint(1, max_price) for _ in range(n)]

if __name__ == "__main__":
    prices = generate_prices()
    print("生成的股票价格序列：", prices)